package com.geek.factory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_device")
@ApiModel(value = "Device", description = "设备实体")
public class Device {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "设备ID")
    private Integer id;

    @ApiModelProperty(value = "设备编码")
    private String code;

    @ApiModelProperty(value = "设备名称")
    private String name;

    @ApiModelProperty(value = "设备类型")
    private String type;

    @ApiModelProperty(value = "所属产线ID")
    private Integer productiveId;

    @ApiModelProperty(value = "设备状态：0-停用，1-启用")
    private Integer status;

    @ApiModelProperty(value = "设备描述")
    private String description;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;




}
